package com.jun.basic.controller;

import com.jun.basic.config.WxConfig;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.HashMap;

@Controller
@RequestMapping("/api/v1/thymeleaf")
public class ThymeleafController {
    @Resource
    private WxConfig wxConfig;

    @GetMapping("/get/config")
    public String getConfig(HashMap modelMap) {
        modelMap.put("setting", wxConfig);
        // 不用添加后缀
        return "tl/user";
    }
}
